package thread;

public class demo27 {
    public static void main(String[] args) throws InterruptedException {
        Object locker = new Object();
        System.out.println("wait 之前");
        synchronized(locker) {
            locker.wait(3000);
        }
        System.out.println("wait 之后");
    }
}
